/* Global Styles */
body {
    font-family: 'Lato', sans-serif;
}

h1,
h2,
h3,
.modal-title,
.hero-title {
    font-family: 'Cinzel', serif;
}

/* Header */
.main-header {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    z-index: 10;
}

.main-header img {
    max-height: 80px !important;
}

@media (max-width: 768px) {
    .main-header img {
        max-height: 60px !important;
    }
}

.logo {
    letter-spacing: 2px;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Desktop Form Styles */
.form-control-dark {
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 0;
    padding: 10px 15px;
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control-dark:focus {
    background-color: rgba(30, 30, 30, 0.8);
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}

.form-select-dark {
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 0;
}

/* Intl Tel Input Customization */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    white-space: normal;
    /* Allow text wrapping */
    max-width: 100vw;
    /* Prevent horizontal overflow */
    box-sizing: border-box;
    /* Optional: Ensure scrollbar doesn't push it out? usually iti handles this */
}

@media (min-width: 576px) {
    .iti__country-list {
        max-width: 350px;
        /* Constrain width on larger screens to look neat */
    }
}

.iti__country-name {
    color: #000 !important;
}

.iti__dial-code {
    color: #666 !important;
}

.iti__country {
    border-bottom: 1px solid #f0f0f0;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: #f8f9fa;
}

/* Ensure the input keeps the dark style */
#heroPhone {
    background-color: rgba(30, 30, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding-left: 50px !important;
    /* Make space for flag */
}

/* Modal Phone Input - Keep Light */
#modalPhone {
    width: 100%;
    padding-left: 50px;
}

.desktop-register-form .btn {
    border-radius: 0;
    /* Square buttons as per some luxury styles */
    padding: 10px 0;
    font-weight: 600;
    letter-spacing: 1px;
}




/* Mobile Button */
.hero-content .btn-lg {
    border-radius: 0;
    font-family: 'Cinzel', serif;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: #EF314B;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.hero-content .btn-lg:hover {
    background-color: #d11f38;
}

.desktop-register-form .btn {
    border-radius: 0;
    padding: 10px 0;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: #EF314B;
    border: none;
    color: #fff;
    transition: background-color 0.3s ease;
}

.desktop-register-form .btn:hover {
    background-color: #d11f38;
}

/* Modal Styles */
.modal-content {
    border-radius: 0;
    border: none;
}

.modal-header .btn-close {
    background-size: 0.8em;
}

.modal-title {
    font-weight: 500;
    letter-spacing: 1px;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body .input-group-text {
    border-radius: 0;
    background-color: #f8f9fa;
    /* Light grey background for inputs */
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.modal-body .form-control:focus {
    box-shadow: none;
    border-color: #000;
    background-color: #fff;
}

.modal-body .btn-dark {
    border-radius: 0;
    background-color: #EF314B;
    border: none;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.modal-body .btn-dark:hover {
    background-color: #d11f38;
}

.modal-body .disclaimer {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* CTA Section */
.cta-title {
    font-weight: 400;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    color: #0c1824;
}

.cta-subtitle {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section .btn-dark {
    background-color: #EF314B;
    border: 1px solid #EF314B;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.why-dubai-section .btn-dark {
    background-color: #EF314B;
    border: 1px solid #EF314B;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.why-dubai-section .btn-dark:hover {
    background-color: #d11f38;
    border-color: #d11f38;
}

.cta-section .btn-dark:hover {
    background-color: #d11f38;
    border-color: #d11f38;
}

/* Projects Grid Section */
.section-title {
    font-weight: 500;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
    color: #0c1824;
    font-size: clamp(2rem, 6vw, 2.5rem) !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #0c1824;
}

/* Project Card */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    /* background: rgb(252, 252, 252) !important;
    padding: 10px; */
    margin: 10px;
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}


.card-body {
    padding: 10px !important;
}

.card-img-top {
    transition: transform 0.6s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Why Invest in Dubai */
.section-divider {
    width: 90%;
    max-width: 1200px;
    border-top: 1px solid #000;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #fff5f5;
    /* Light red tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e60000;
    /* Red */
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-item:hover .icon-circle {
    transform: translateY(-5px);
    background-color: #ffe0e0;
}

.benefit-text {
    font-family: 'Lato', sans-serif !important;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 400;
    max-width: 200px;
    /* Force wrapping to look like reference */
    margin-left: auto;
    margin-right: auto;
}

.project-type {
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.project-name {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: #0c1824;
    letter-spacing: 0.5px;
}

.project-meta {
    font-family: 'Lato', sans-serif;
    color: #6c757d;
}

.project-meta i {
    width: 16px;
    text-align: center;
    color: #e60000;
    /* Red */
}

.project-card .btn-outline-dark {
    border-color: #d1cfcf;
    color: #040404;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 600;
}

.project-card .btn-outline-dark:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}


.bg-dark-blue {
    background-color: #0c1824;
}

.stat-card {
    background-color: #152433;
    /* Lighter dark blue */
    border-radius: 0;
    /* Square corners */
    transition: transform 0.3s ease;
    border: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    background-color: #1a2c3d;
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(239, 49, 75, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF314B;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    background-color: rgba(239, 49, 75, 0.1);
    border-color: #EF314B;
}

.stat-icon i {
    color: #e60000 !important;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.5rem;
}

.text-gold {
    color: #f9f9f9 !important;
}

/* Footprint */
.footprint-section {
    background-color: #fff;
}

.map-container iframe {
    filter: grayscale(100%) invert(0%) contrast(1.2);
    /* Optional: Stylized map */
    transition: all 0.3s ease;
}
.map-container iframe:hover {
    filter: grayscale(0%) invert(0%) contrast(1.2);
}

/* Footer */
.footer a {
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #0c1824 !important;
}










.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    max-width: 90%;
}

.toast-box {
    background: #ffffff;
    color: #111;
    border: 1px solid #ddd;
    padding: 14px 22px;
    font-size: 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.4s ease forwards;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}















/* Sticky CTA (Mobile Only) */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    /* Below modal (1055) but above content */
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    background-color: rgb(255, 255, 255) !important;
    padding: 10px;
    border: 1px solid rgb(179, 178, 178);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    background-color: #EF314B !important;
    /* Dark Blue from brand */
    border: none;
    color: #fff !important;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-cta .btn:hover {
    background-color: #152433;
}































 /* Gallery Section (Dynamic Bento Grid) */
 .gallery-section {
     background-color: #fafafa;
 }

 .gallery-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-auto-rows: 250px;
     grid-auto-flow: dense;
     gap: 15px;
 }

 .gallery-item {
     position: relative;
     overflow: hidden;
     cursor: pointer;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
     display: block;

     /* For anchor tags */
 }

 .gallery-itemimg {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.6s ease;
     
 }

 /* Dynamic Bento Grid Pattern */
 .gallery-item:nth-child(6n+1) {
     grid-column: span 2;
     grid-row: span 2;
 }

 .gallery-item:nth-child(6n+2) {
     grid-column: span 1;
     grid-row: span 2;
 }

 .gallery-item:nth-child(6n+6) {
     grid-column: span 2;
     grid-row: span 1;
 }

 .gallery-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.6s ease;
 }

 /* Overlay Effects */
 .gallery-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.3);
     display: flex;
     flex-direction: column;
     justify-content: end;
     padding: 20px;
     opacity: 0;
     transition: all 0.4s ease;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
 }

 .gallery-item:hover .gallery-overlay {
     opacity: 1;
 }

 .gallery-item:hover img {
     transform: scale(1.1);
 }

 .gallery-content {
     transform: translateY(20px);
     transition: transform 0.4s ease;
     color: #fff;
 }

 .gallery-item:hover .gallery-content {
     transform: translateY(0);
 }

 .gallery-content h4 {
     font-family: 'Cinzel', serif;
     font-size: 1.2rem;
     letter-spacing: 1px;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
 }

 /* Responsiveness */
 @media (max-width: 991px) {
     .gallery-grid {
         grid-template-columns: repeat(2, 1fr);
         grid-template-rows: auto;
     }

     .gallery-item:nth-child(n) {
         grid-column: span 1;
         grid-row: span 1;
     }

     .gallery-item:nth-child(3n+1) {
         grid-column: span 2;
         grid-row: span 2;
     }
 }



 @media (max-width: 576px) {
     .gallery-grid {
         display: flex;
         flex-direction: column;
         gap: 15px;
     }

     .gallery-item {
         height: 300px;
         width: 100%;
     }

     .gallery-overlay {
         opacity: 1;
         background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
     }

     .gallery-content {
         transform: translateY(0);
     }
 }

 /* Nearby Locations Section - Premium Styling */
 .nearby-section {
     position: relative;
 }

 .location-card {
     transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
     border: 1px solid rgba(0, 0, 0, 0.05);
     border-radius: 0;
     position: relative;
     overflow: hidden;
     z-index: 1;
 }

 /* Subtle Gradient overlay on hover */
 .location-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, rgba(239, 49, 75, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
     opacity: 0;
     transition: opacity 0.4s ease;
     z-index: -1;
 }

 .location-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
     border-color: rgba(239, 49, 75, 0.3);
 }

 .location-card:hover::before {
     opacity: 1;
 }

 /* Icon Wrapper Animations */
 .location-icon-wrapper {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 80px;
     height: 80px;
     background-color: #f8f9fa;
     border-radius: 50%;
     transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     margin: 0 auto;
 }

 .location-card:hover .location-icon-wrapper {
     background-color: #EF314B;

     box-shadow: 0 10px 20px rgba(239, 49, 75, 0.3);
 }

 .location-card:hover .location-icon-wrapper i {
     color: #fff !important;
 }

 /* Icons and Text */
 .text-primary-gold {
     color: #EF314B !important;
     /* Force Brand Red */
     transition: color 0.4s ease;
 }

 .location-name {
     font-family: 'Cinzel', serif;
     font-weight: 600;
     font-size: 1.1rem;
     letter-spacing: 0.5px;
     color: #0c1824;
 }

 .location-stats {
     font-family: 'Lato', sans-serif;
     font-size: 0.9rem;
 }

 .location-stats i {
     color: #EF314B;
     margin-right: 5px;
 }

 /* Download Button Styling */
 .nearby-section .btn-dark {
     background-color: #EF314B;
     border: 1px solid #EF314B;
     font-family: 'Cinzel', serif;
     letter-spacing: 1px;
     font-weight: 600;
     transition: all 0.3s ease;
     font-size: 1rem !important;
 }

 .nearby-section .btn-dark:hover {
     background-color: #d11f38;
     border-color: #d11f38;
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(239, 49, 75, 0.4);
 }